package com.beiming.libra.aspect;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Pointcut;

/**
 * @author zhangqi
 */
public aspect CaseAspect {

  @Pointcut("target(com.beiming.libra.service.ArbitrationCaseService)&&execution(* com.beiming.libra.service.ArbitrationCaseService.updateCaseStatusForUser(..))")
  private void updateCaseStatusForUser() {
  }

  @Pointcut("target(com.beiming.libra.service.ArbitrationCaseService)&&execution(* com.beiming.libra.service.ArbitrationCaseService.updateCaseStatusForWork(..))")
  private void updateCaseStatusForWork() {
  }

  @AfterReturning("updateCaseStatusForUser()")
  public void doAfterReturning() {
    System.out.println("后置通知");
  }
}
